
import 'package:flutter/material.dart';

class ExamplePage extends StatelessWidget {
  const ExamplePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Example'),
      ),
      body: Wrap(
        crossAxisAlignment: WrapCrossAlignment.center,
        spacing: 20,
        runSpacing: 20,
        children: [
          ElevatedButton(
            onPressed: () => Navigator.pushNamed(context, '/container_or_text'),
            child: const Text('容器或文本'),
          ),
          ElevatedButton(
            onPressed: () => Navigator.pushNamed(context, '/image'),
            child: const Text('图片'),
          ),  
          ElevatedButton(
            onPressed: () => Navigator.pushNamed(context, '/icon'),
            child: const Text('图标'),
          ),
          ElevatedButton(
            onPressed: () => Navigator.pushNamed(context, '/list'),
            child: const Text('列表'),
          ),
          ElevatedButton(
            onPressed: () => Navigator.pushNamed(context, '/grid'),
            child: const Text('grid'),
          ),
          ElevatedButton(
            onPressed: () => Navigator.pushNamed(context, '/pad'),
            child: const Text('padding_row_column_flex'),
          ),
          ElevatedButton(
            onPressed: () => Navigator.pushNamed(context, '/stack'),
            child: const Text('stack'),
          ),
        ],
      ),
    );
  }
}